package actions;

import java.io.File;
import java.util.ArrayList;

public class MoveAction extends CopyAction {

	public MoveAction(String src, String copyTo) {
		super(src, copyTo);
	}
	
	public void doAction(File file, ArrayList<File> files){
		super.doAction(file, files);
		file.delete();
	}
	
	public static void main (String args[]){
		File file = new File ("C:\\Intel\\cmd.txt");
		String src = "C:\\Intel\\";
		String tar = "ddd\\";
		MoveAction h = new MoveAction(src, tar);
		h.doAction(file);
	}
}
